<%@ page language="java" import="java.util.*,com.king.cms.common.PowerParameter,com.king.cms.orm.CmsDept" pageEncoding="UTF-8"%>
<%@ include file="../../include/css.jsp"%>
<%-- /*包含css样式表*/ --%> 
<%   
	String pageFunc = "部门设置";		//功能描述
%>
<%
	int pow=(PowerParameter.save | PowerParameter.cls | PowerParameter.list);
	
	CmsDept cmsDept=(CmsDept)request.getAttribute("cmsDept");
%>


<html>
	<head>
		<title><%=pageFunc%>
		</title>
		<meta  http-equiv="Expires"     CONTENT="0">           
<meta  http-equiv="Cache-Control"     CONTENT="no-cache">           
<meta  http-equiv="Pragma"     CONTENT="no-cache">
		<script language="javascript">
	function doEnable()
	{
		form1.bmMc.disabled=false;
		form1.bmBzrs.disabled=false;
	}
	function ki_save(){

	 if(clskg(document.getElementById("bmMc").value) != ''){
	 	form1.submit();
	 }else {
	   alert('部门名称不能为空');
	 }
	}
	function ki_cls(){
		document.getElementById("bmMc").value='';
	}
	function ki_list(){
		window.open('<%=basePath%>dept.do?doClass=list','_self');
	}
	////////除去空格/////////
	function clskg(va){
	  var th=/\s/g;
	 va=va.replace(th,'');
	 return va;
	}
</script>
	</head>
	<body background="<%=imgpath%>top3.gif" leftmargin="0" topmargin="0">
		 <br>
		 <center> 
		<form name="form1" method="post"
			action="<%=basePath%>dept.do?doClass=saveamend">
			<table border="0" cellpadding="0" cellspacing="0" style="width:70%"
				height="2">
				<tr>
					<td width="9" height="1"></td>
					<td height="1" background="<%=path%>/img/images_06.gif">
						<p align="center">
							<b><%=pageFunc%>
							</b>
					</td>
					<td width="9" height="1"></td>
				</tr>
			</table>
			<table height="48" border="0" cellpadding="2" cellspacing="1"
				class="bg_table" style="width:70%" bordercolor="#111111">
				<tr class="top_td">
					<td colspan="2" class="top_td">
						 
					</td>
				</tr>
				<tr class="td2">
					<td width="30%">
						部门名称
					</td>
					<td width="70%">
					<input type="hidden" name="id" value="<%=cmsDept.getId() %>">
						<input type="text" name="bmMc" size="60" class="area100"
							check="c_n_50" value="<%=cmsDept.getDeptName() %>">
					</td>
				</tr>
				<tr class="top_td">
					<td colspan="2"> 
					</td>
				</tr>
			</table>
</form>
</center>
		</body>
</html>
<%@ include file="../../pow.jsp"%>
